<?php
use yii\helpers\Html;
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
LayerConfirmWidget::widget();
LayerIframeWidget::widget();

/* @var $this \yii\web\View */
/* @var $content string */
?>
<header class="main-header">
    <?= Html::a('<img src="images/logo.jpg" class="yx-floatl" alt="'.Html::encode(\common\components\helpers\Fun::getSiteName()).'"><h1 class="header-title">'.Html::encode(\common\components\helpers\Fun::getSiteName()).'</h1>', Yii::$app->homeUrl, ['class' => 'logo']) ?>
    <nav class="navbar navbar-static-top" role="navigation">
        <a href="#" id="sidebar-toggle" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <li class="zx-navbar-nav-circle yx-card-check img-circle"><a title="签到" alt="签到" href="<?=\common\components\helpers\Fun::url('touch/default/index')?>"><i class="iconfont icon-sidebar-4" style="color: #fff"></i></a></li>
               <?php if(\Yii::$app->request->get('site') == 'qdgtt'):?>
                <li class="zx-navbar-nav-circle yx-card-check img-circle"><a title="扫码打卡" alt="扫码打卡" href="<?=\common\components\helpers\Fun::url('click/default/index')?>"><i class="iconfont icon-sidebar-4" style="color: #fff"></i></a></li>
                <?php endif;?>
                <li class="zx-navbar-nav-circle yx-change-pass img-circle"><a title="修改密码" rel="dialog-show-iframe" data-name="修改密码" data-size="500*500" data-url="<?=\common\components\helpers\Fun::url(['admin/updatepass','id'=>\Yii::$app->user->id])?>"><i class="iconfont icon-sidebar-3" style="color: #fff"></i></a></li>
                <li class="zx-navbar-nav-circle yx-clear-ram img-circle"><a title="清缓存" rel="record_item_confirm" data-url="<?=\common\components\helpers\Fun::url('site/nocache')?>" data-message="确定要清除缓存？"><i class="iconfont icon-actionuncache" style="color: #fff"></i></a></li>
                <li class="zx-navbar-nav-circle yx-clock img-circle"><a rel='lock_screen' title="锁屏" data-url="<?=\common\components\helpers\Fun::url('site/lockscreen')?>"><i class="iconfont icon-actionlock" style="color: #fff"></i></a></li>
                <li class="zx-navbar-nav-circle yx-power-off img-circle"><a title="退出" href="<?=\common\components\helpers\Fun::url('site/logout')?>" data-method="post"><i class="iconfont icon-actionturnoff" style="color: #fff"></i></a></li>
                <!-- Messages: style can be found in dropdown.less-->
                <li id="nav-info-dropdownlist" class="dropdown  messages-menu">
                    <a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle zx-navbar-nav-info"> <img src="images/user.jpg" class="img-circle yx-mr15 yx-user-img"> <span class="text yx-user-name"><?=isset(\Yii::$app->user->identity)?!empty(\Yii::$app->user->identity->name)?\Yii::$app->user->identity->name:\Yii::$app->user->identity->username:''?></span> <b class="caret"></b> </a>
                    <div class="border-before"></div>
                    <div class="border-after"></div>
                    <ul class="dropdown-menu zx-dropdown-menu">
                        <li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> 新消息</a></li>
                        <li class="divider"></li>
                        <li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> 收件箱</a></li>
                        <li class="divider"></li>
                        <li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> 发件箱</a></li>
                        <li class="divider"></li>
                        <li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> 回收站</a></li>
                    </ul>
                </li>
                <li style="display: none">
                    <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                </li>
            </ul>
        </div>
    </nav>
</header>




